package com.ptu.spzx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ptu.spzx.domain.Knowledge.KnowledgePoint;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author YT
 * @since 2024-01-28
 */
@Mapper
public interface KnowledgePointMapper extends BaseMapper<KnowledgePoint> {

    @Update("UPDATE knowledge_point set konwledge_used = konwledge_used+1 WHERE konwledge_id=#{knowledgeId}")
    Integer updateByKnowIdUse(Long knowledgeId);
}
